<template>
	<view>
		<view class="title-box">
			webview 数据接收
		</view>

		<view class="data-box">
			<view class="data-item">经度：{{ position.lng }}</view>
			<view class="data-item">纬度：{{ position.lat }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad: function(option) {
			if (option.point != undefined) {
				this.position = JSON.parse(option.point)
			}
		},
		data() {
			return {
				position: null
			}
		},
		methods: {}
	}
</script>

<style lang="scss">
	.title-box {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 100rpx;
	}

	.data-box {
		padding: 30rpx;
	}

	.data-item {
		margin: 20rpx 0;
	}
</style>
